<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .a{
            width: 80px;
            height: 30px;
            background: red;
            text-align: center;
            font-size: 15px;
            color: white;
            padding: 13px 0 0 6px ;
            margin: auto 50%;
        }
        .b{
            margin: auto 50%;
           width: 80px;
            height: 30px;
            padding: 13px 0 0 6px ;
            background: #0000ff;
            text-align: center;
            font-size: 15px;
            color: white;
        }
    </style>
</head>
<body>

<div class="a">推荐</div>
<div class="b">西瓜视频</div>
<div class="a">热点</div>
<div class="b">直播</div>
<div class="a">图片</div>
<div class="b">科技</div>
<div class="a">娱乐</div>
<div class="b">游戏</div>
<div class="a">体育</div>
<div class="b">汽车</div>
<div class="a">财经</div>
<div class="b">搞笑</div>
<div class="a">更多</div>
</body>
</html>